package br.com.jokim.didaque.ui.activity;

import roboguice.activity.RoboListActivity;
import roboguice.inject.ContentView;
import android.os.Bundle;
import br.com.jokim.didaque.R;
import br.com.jokim.didaque.adapter.ApostilaAdapter;
import br.com.jokim.didaque.model.Apostila;

@ContentView(R.layout.activity_apostila)
public class ApostilaActivity extends RoboListActivity{
	private ApostilaAdapter apostilaAdapter;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		apostilaAdapter = new ApostilaAdapter(this, R.layout.listview_apostila, Apostila.getApostilas());
	}
	
	@Override
	protected void onResume() {
		super.onResume(); 
		apostilaAdapter.setListaApostilas(Apostila.getApostilas());
	}
}
